#!/usr/bin/env python
#-*- coding:utf-8 -*-

def parseMoney(amount):
    point = [25,10,5,1]
    result = {}
    for p in point:
        #整除取余，余数如果不等于0则继续做计算，如果等于0说明有结果了返回,使用break
        temp = divmod(amount, p)
        if temp[1] == 0:
           break 
        result[p] = temp[0]
        amount = temp[1]
    return result

if __name__ == '__main__':
    print parseMoney(90)
